<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="width=device-width" />
        <title>Admin-{% block title %}Home{% endblock %}</title>
        {% block stylesheets %}
        <link href="{{ asset('bundles/katebaadmin/css/bootstrap.min.css') }}" type="text/css" rel="stylesheet" />
        <link href="{{ asset('bundles/katebaadmin/css/chosen.css') }}" type="text/css" rel="stylesheet" />
        <link href="{{ asset('bundles/katebaadmin/css/backend.css') }}" type="text/css" rel="stylesheet" />
        {% endblock %}
        <link rel="shortcut icon" href="{{ asset('favicon.ico') }}" />
    </head>
    <body>
        {% if is_granted('ROLE_ADMIN') %}
        <div class="navbar navbar-inverse navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container-fluid">
                   <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                       <span class="icon-bar icon-white"></span>
                       <span class="icon-bar icon-white"></span>
                       <span class="icon-bar icon-white"></span>
                   </a>
                    <a class="brand" href="{{ path('admin_home') }}">Kateba</a>
                    <div class="nav-collapse collapse">
                        <ul class="nav">
                            <li><a href="{{ path('sonata_admin_dashboard') }}">Dashboard</a></li>
                            <li><a href="{{ path('admin_site_config') }}">Site Settings</a></li>
                            <li><a href="{{ path('admin_site_pages') }}">Site Pages</a></li>
                            <li><a href="{{ path('logout') }}">Logout</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        {% endif %}
        <div class="container-fluid" style="margin-top: 60px;">
            {% if app.session.hasFlash('notice') %}
            <div class="alert alert-info">
                <p>{{ app.session.flash('notice') | raw }}</p>
            </div>
            {% endif %}
            {% if app.session.hasFlash('success') %}
            <div class="alert alert-success">
                <p>{{ app.session.flash('success') | raw }}</p>
            </div>
            {% endif %}
            {% if app.session.hasFlash('error') %}
            <div class="alert alert-error">
                <p>{{ app.session.flash('error') | raw }}</p>
            </div>
            {% endif %}
            {% block body %}{% endblock %}
        </div>
        {% block javascripts %}
        <script src="{{ asset('bundles/katebaadmin/js/jquery1.8.2.min.js') }}" type="text/javascript"></script>
        <script src="{{ asset('bundles/katebaadmin/js/bootstrap.min.js') }}" type="text/javascript"></script>
        <script src="{{ asset('bundles/katebaadmin/js/chosen.jquery.min.js') }}" type="text/javascript"></script>
        <script src="{{ asset('bundles/katebaadmin/js/jquery.livequery.js') }}" type="text/javascript"></script>
        <script src="{{ asset('bundles/katebaadmin/js/jquery.autosize.js') }}" type="text/javascript"></script>
        <script src="{{ asset('bundles/katebaadmin/js/ckeditor/ckeditor.js') }}" type="text/javascript"></script>
        <script src="{{ asset('bundles/katebaadmin/js/backend.js') }}" type="text/javascript"></script>
        {% endblock %}
    </body>
</html>
